const express = require('express')

const userController =  require('../controller/user')

const router = express.Router()

router.post('/', userController.add)

router.post('/list',userController.addList)

router.get('/', userController.find)

router.put('/', userController.modify)

router.delete('/:_id', userController.remove)

router.get('/user',userController.findUser)
router.get('/current', userController.currentUser)


module.exports = router